<div class="layui-side layui-bg-black" style="width:170px;">
    <div class="layui-side-scroll">
        <ul class="layui-nav layui-nav-tree"  lay-filter="test">
            <?php if(in_array($this->userInfo["role_id"],[1,2])){ ?>
                <li class="layui-nav-item layui-nav-itemed">
                    <a class="" href="javascript:;">素材管理</a>
                    <dl class="layui-nav-child">
                        <?php if($this->userInfo["role_id"] == 1 || $this->userInfo["role_id"]==2){?>
                            <dd  class="<?=strpos("material/material/index",$menu) === 0 ? "layui-this" : ""?>" ><a href="<?=base_url("material/material/index")?>">配音素材管理</a></dd>
                            <dd  class="<?=strpos("material/quailty_material/index",$menu) === 0 ? "layui-this" : ""?>" ><a href="<?=base_url("material/quailty_material/index")?>">PGC视频管理</a></dd>
                            <!--                    <dd  class="--><?//=strpos("material/activity_material/index",$menu) === 0 ? "layui-this" : ""?><!--" ><a href="--><?//=base_url("material/activity_material/index")?><!--">活动推荐视频</a></dd>-->
                        <?php }?>
                    </dl>
                </li>
            <?php }?>
            <?php if(in_array($this->userInfo["role_id"],[1,2])){?>
                <li class="layui-nav-item layui-nav-itemed">
                    <a class="" href="javascript:;">话题管理</a>
                    <dl class="layui-nav-child">
                        <?php if($this->userInfo["role_id"] == 1 || $this->userInfo["role_id"]==2){?>
                            <dd  class="<?=strpos("word/type/index",$menu) === 0 ? "layui-this" : ""?>" ><a href="<?=base_url("word/type/index")?>">话题分类</a></dd>
                        <?php }?>
                        <?php if($this->userInfo["role_id"] == 1 || $this->userInfo["role_id"]==2){?>
                            <dd  class="<?=strpos("word/television/index",$menu) === 0 ? "layui-this" : ""?>" ><a href="<?=base_url("word/television/index")?>">频道分类</a></dd>
                        <?php }?>
                        <?php if($this->userInfo["role_id"] == 1 || $this->userInfo["role_id"] == 2){?>
                            <dd><a class="<?=strpos("word/words/index",$menu) === 0 ? "layui-this" : ""?>" href="<?=base_url("word/words/index")?>">话题库</a></dd>
                        <?php }?>
                    </dl>
                </li>
            <?php } ?>

            <?php if(in_array($this->userInfo["role_id"],[1,2,3,4])){ ?>
                <li class="layui-nav-item layui-nav-itemed">
                    <a class="" href="javascript:;">内容运营</a>
                    <dl class="layui-nav-child">
                        <?php if($this->userInfo["role_id"] == 1 || $this->userInfo["role_id"]==3){?>
                            <dd  class="<?=strpos("user_material/material/index",$menu) === 0 ? "layui-this" : ""?>" ><a href="<?=base_url("user_material/material/index")?>">UGC投稿列表</a></dd>
                        <?php }?>
                        <?php if($this->userInfo["role_id"] == 1 || $this->userInfo["role_id"]==2){?>
                            <dd><a class="<?=strpos("user_material/yunyin/index",$menu) === 0 ? "layui-this" : ""?>" href="<?=base_url("user_material/yunyin/index")?>">精品内容运营</a></dd>
                        <?php }?>
                    </dl>
                </li>
            <?php } ?>

            <?php if(in_array($this->userInfo["role_id"],[1,2])){ ?>
                <li class="layui-nav-item layui-nav-itemed">
                    <a class="" href="javascript:;">非编素材管理</a>
                    <dl class="layui-nav-child">
                        <?php if($this->userInfo["role_id"] == 1 || $this->userInfo["role_id"]==2){?>
                            <dd  class="<?=strpos("no_edit/sticker/index",$menu) === 0 ? "layui-this" : ""?>" ><a href="<?=base_url("no_edit/sticker/index")?>">非编贴纸</a></dd>
                        <?php }?>
                        <?php if($this->userInfo["role_id"] == 1 || $this->userInfo["role_id"]==2){?>
                            <dd  class="<?=strpos("no_edit/music/index",$menu) === 0 ? "layui-this" : ""?>" ><a href="<?=base_url("no_edit/music/index")?>">非编音效</a></dd>
                        <?php }?>
                        <?php if($this->userInfo["role_id"] == 1 || $this->userInfo["role_id"]==2){?>
                            <dd  class="<?=strpos("no_edit/no_edit_photo/index",$menu) === 0 ? "layui-this" : ""?>" ><a href="<?=base_url("no_edit/no_edit_photo/index")?>">非编相框模板</a></dd>
                        <?php }?>
                        <?php if($this->userInfo["role_id"] == 1 || $this->userInfo["role_id"]==2){?>
                            <dd  class="<?=strpos("no_edit/photo_frame/index",$menu) === 0 ? "layui-this" : ""?>" ><a href="<?=base_url("no_edit/photo_frame/index")?>">配配配相框模板</a></dd>
                        <?php }?>
                        <?php if($this->userInfo["role_id"] == 1 || $this->userInfo["role_id"]==2){?>
                            <dd  class="<?=strpos("no_edit/video/index",$menu) === 0 ? "layui-this" : ""?>" ><a href="<?=base_url("no_edit/video/index")?>">测测测视频模板</a></dd>
                        <?php }?>
                    </dl>
                </li>
            <?php } ?>
            <?php if(in_array($this->userInfo["role_id"],[1,2])){ ?>
                <li class="layui-nav-item layui-nav-itemed">
                    <a class="" href="javascript:;">活动管理</a>
                    <dl class="layui-nav-child">
                        <?php if($this->userInfo["role_id"] == 1 || $this->userInfo["role_id"]==2){?>
                            <dd  class="<?=strpos("activity/activity/index",$menu) === 0 ? "layui-this" : ""?>" ><a href="<?=base_url("activity/activity/index")?>">专题活动</a></dd>
                        <?php }?>
                        <?php if($this->userInfo["role_id"] == 1 || $this->userInfo["role_id"]==2){?>
                            <dd  class="<?=strpos("activity/wangchun/index",$menu) === 0 ? "layui-this" : ""?>" ><a href="<?=base_url("activity/wangchun/index")?>">网春大拜年</a></dd>
                        <?php }?>
                    </dl>
                </li>
            <?php } ?>
            <?php if(in_array($this->userInfo["role_id"],[1,3])){ ?>
                <li class="layui-nav-item layui-nav-itemed">
                    <a class="" href="javascript:;">用户管理</a>
                    <dl class="layui-nav-child">
                        <?php if($this->userInfo["role_id"] == 1 || $this->userInfo["role_id"]==3){?>
                            <dd  class="<?=strpos("person/name/index",$menu) === 0 ? "layui-this" : ""?>" ><a href="<?=base_url("person/name/index")?>">个性签名审核</a></dd>
                        <?php }?>
                    </dl>
                </li>
            <?php } ?>
            <?php if(in_array($this->userInfo["role_id"],[1,2])){ ?>
                <li class="layui-nav-item layui-nav-itemed">
                    <a class="" href="javascript:;">数据统计</a>
                    <dl class="layui-nav-child">
                        <?php if($this->userInfo["role_id"] == 1 || $this->userInfo["role_id"]==2){?>
                            <dd  class="<?=strpos("statics/statics/index",$menu) === 0 ? "layui-this" : ""?>" ><a href="<?=base_url("statics/statics/index")?>">数据统计</a></dd>
                        <?php }?>
                        <?php if($this->userInfo["role_id"] == 1 || $this->userInfo["role_id"]==2){?>
                            <dd  class="<?=strpos("statics/down_excel/index",$menu) === 0 ? "layui-this" : ""?>" ><a href="<?=base_url("statics/down_excel/index")?>">EXCEL</a></dd>
                        <?php }?>
                    </dl>
                </li>
            <?php } ?>

        </ul>
    </div>
</div>

<div class="layui-body">
    <!-- 内容主体区域 -->
    <div style="padding: 15px;">